<style type="text/css">
    .knowledge_shangchuanjindu_yulan{width: 100%;    height: 5px;    margin-top: 5px;    border-radius: 2px;    overflow: hidden;}
    .lookrecord{ cursor:pointer;}
    .lookrecord:hover{ color:#39f;}
</style>
<div class="traintask" ng-controller = "honorlistController">
    <!--筛选区-->
    <div class="traintask_top">
        <div class="traintaskcztimefw" style="background-color: #fff;border: 1px solid #ddd;padding: 0 10px;">
            <a>创建时间</a><!--<span class="caret"></span>-->
            <input id="startDate" style="width:120px;" placeholder="开始日期" onclick="var endTime=$dp.$('startDate');wdatepicker({dateFmt:'yyyy-MM-dd HH:mm:ss',onpicked:function(){endDate.click();},maxDate:'#F{$dp.$D(\'endDate\')}'})" ng-focus="GetDate()">
            <span>-</span>
            <input style="width:120px;" id="endDate" placeholder="截止日期" value="" onclick="wdatepicker({dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'startDate\')}'})"
                ng-focus="GetDate()"/>
        </div>
         <div>
        <input type="text" placeholder="请输入荣誉名称" set-focus class="traintask_top_sousuo" ng-model="params.searchText" ng-keyup = "findListEnter($event)" style="height: 32px; border:0;"/>
        </div>
        <div ng-click="getList()" style="float: none;height: 32px;">
            <svg class="icon" aria-hidden="true"><use xlink:href="#icon-sousuo"></use></svg>
            确认筛选
        </div>
        <div class="traintask_top_right">
            <!--绑定指令(预留) -->
            <div class="traintask_top_add " btncon="btnStatistics" btn-obj="btnlist" ng-click="btnStatic()"   fun="1" >
                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-yanjing"></use></svg>
                统计</div>  
            <div class="traintask_top_add " btncon="btnAdd" btn-obj="btnlist" ng-click="initAdd()"   fun="1" >
                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-tianjia"></use></svg>
                新增</div>            
            <div class="traintask_top_add " btncon="btnEdit" btn-obj="btnlist" ng-click="openAdd()"   fun="1" >
                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-bianji"></use></svg>
                编辑</div>        
            <div class="traintask_top_select" btncon="btnDel" btn-obj="btnlist" ng-click="delinfo()"   fun="1" >
                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-shanchu"></use></svg>
                删除</div>
        </div>
    </div>
    <!--内容区-->
    <div class="traintask_main">
        <div class="traintask_main_liebiao">
            <table class="tab">
                <thead>
                    <th> <div class="traintask_main_liebiao_checkbox">
                            <div class="liebiaocheck-box" ng-click="selectAll()" ng-class="{selected:checkAll !=0 && checkAll == List.length}">
                                <!--添加selected为选中样式-->
                                <span class="iconfont"></span>
                            </div>
                            <div class="traintask_main_liebiaoli_xiugai" ng-if="false">
                                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-xiugai"></use></svg>
                            </div>
                        </div></th>
                    <th style="text-align:left;">荣誉称号</th>     
                    <th>有效期（天）</th>
                    <th>创建人</th>
                    <th>证书名称</th>
                    <th>审批获得</th>
                    <th>创建日期</th>
                    <th>修改日期</th>
                    <th></th>
                </thead>
                <tbody>
                    <tr ng-if="List.length <=0 && !Loading">
                        <td colspan="9">
                            <center style="margin:100px auto;">
                                <img src="/images/null/null.png" />
                                <div style="font-size:30px;color:#a3a3a3;"  ng-bind="'Null' | T"></div>
                            </center>   
                        </td>
                    </tr>
                    <tr ng-if="Loading">
                        <td  colspan="9"><!--Loading-->
                            <loading isloading="Loading" ng-if="Loading"></loading>  
                        </td>
                    </tr>
                    <tr ng-repeat="item in List">
                        <td class="tdshou"><div class="traintask_main_liebiao_checkbox">
                            <div class="liebiaocheck-box" ng-click="singleCheck(item)" ng-class="{selected:item.isSel}">
                                <!--添加selected为选中样式-->
                                <span class="iconfont"></span>
                            </div>
                            <div class="traintask_main_liebiaoli_xiugai" ng-click="addinfo(item)">
                                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-bianji"></use></svg>
                            </div>
                        </div></td>
                        <td class="tdshou">
                            <img ng-src="{{item.honorIcon}}" src="/images/huzhang/huizhang1.png" style="max-width: 60px;max-height: 60px;">
                            {{item.honorName}}
                        </td>
                        <td align="center"> {{item.effectiveDays==-1?'不限制':item.effectiveDays}}</td>
                        <td align="center" ng-bind="item.createUserName"></td>
                        <td align="center" ng-bind="item.certificateName?item.certificateName:'无'"></td>
                        <td align="center" ng-bind="item.isExamine?'是':'否'"></td>
                        <td  align="center" class="tdshou"><div class="traintask_main_liebiao_pxkstime_sj" ng-bind="item.createDate | to_time"  >
                                00:00</div>
                            <div class="traintask_main_liebiao_pxkstime_data" ng-bind="item.createDate | to_date">
                                0000-00-00</div></td>
                        <td  align="center" class="tdshou"><div class="traintask_main_liebiao_pxkstime_sj" ng-bind="item.modifyDate | to_time"  >
                                00:00</div>
                            <div class="traintask_main_liebiao_pxkstime_data" ng-bind="item.modifyDate | to_date">
                                0000-00-00</div></td>
                        <td class="tdshou" style="position: relative; text-align: center;">                      
                            <div ng-mousemove="item.isToolShow=true" ng-mouseleave ="item.isToolShow = false" >
                                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-ttpodicon1"></use></svg>
                                <ul class="dropdown-menu" ng-if="item.isToolShow" style="position: absolute;top: 10px;z-index: 999;">
                                    <li ng-click="btnStatic(item)">
                                        <svg class="icon" aria-hidden="true"><use xlink:href="#icon-yanjing"></use></svg>
                                        统计</li>
                                    <li ng-click="openAdd(item)">
                                        <svg class="icon" aria-hidden="true"><use xlink:href="#icon-bianji"></use></svg>
                                        编辑</li>
                                    <li ng-click="delinfo(item)">
                                        <svg class="icon" aria-hidden="true"><use xlink:href="#icon-shanchu"></use></svg>
                                        删除</li>
                                </ul>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>

        </div>
        <!--分页-->
        <tm-pagination conf="paginationConf"></tm-pagination>
        <!------新增编辑弹框------>
      <honor-add ng-if="showForm" on-save="getList()" on-close="closeOrOpenForm()"  uploader="uploader" uploader2="uploader2" item="item"></honor-add> 
       <!------统计弹框------>
      <honor-static ng-if="showStatic" on-close="closeOrOpenStatic()"  on-save="getList()"  item="item"></honor-static> 
    </div>         
</div>
